
// <copyright file="IBulkCopier.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The BulkCopier interface.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Data
{
    using System.Data;

    /// <summary>
    /// The BulkCopier interface.
    /// </summary>
    public interface IBulkCopier
    {
        #region Public Methods and Operators

        /// <summary>
        /// The do bulk copy.
        /// </summary>
        /// <param name="reader">
        /// The reader.
        /// </param>
        /// <param name="connection">
        /// The connection.
        /// </param>
        /// <param name="tableName">
        /// The table name.
        /// </param>
        void DoBulkCopy(IDataReader reader, IDbConnection connection, string tableName);

        /// <summary>
        /// The do bulk copy.
        /// </summary>
        /// <param name="reader">
        /// The reader.
        /// </param>
        /// <param name="transaction">
        /// The transaction.
        /// </param>
        /// <param name="tableName">
        /// The table name.
        /// </param>
        void DoBulkCopy(IDataReader reader, IDbTransaction transaction, string tableName);

        #endregion Public Methods and Operators
    }
}